package com.qingzhu.pojovo;

public class ResultVo {
    // 响应状态码(200:正常响应 1000:查找结果为空 1001:服务器标志为空 1002:接收到参数为空 1003:拒绝访问)
    private int code;
    private String msg;     // 响应的消息
    private Object data;    // 响应的数据

    public ResultVo (int code,String msg){
        this(code,msg,null);
    }
    public ResultVo (int code,Object data){
        this(code,null,data);
    }
    public ResultVo (int code,String msg,Object data){
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResultVo{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
